<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">

  <title>汇跑赛事</title>
</head>

<body>




  <script src="https://r3.ihuipao.cn/wuxih5/js/jquery-1.11.0.min.js"></script>
  <script src="https://r3.ihuipao.cn/wuxih5/js/jquery.qrcode.min.js"></script>
  <style>
    .wrapper {
      width: 400px;
      height: 400px;
      position: absolute;
      margin: auto;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }

    #qrcode img {
      width: 100%;
    }

  </style>


  <div class="wrapper">
      <div style="text-align: center;" id="qrcode"></div>
    <p>不支持该浏览器，推荐您使用Edge、Chrome、Firefox、360浏览器等进行报名，或者使用手机扫描上方二维码进行报名</p>
    

  </div>


  <script>
    function getUrlParam(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
      var r = window.location.search.substr(1).match(reg); //匹配目标参数

      if (r != null)
        return unescape(r[2]);
      return null; //返回参数值
    }


    var url=getUrlParam('url')


    jQuery('#qrcode').qrcode({
      width: 256, //单位是像素
      height: 256,
      text: url,
      colorDark: '#000000',
      colorLight: '#ffffff',
    });


    // var qrcode = new QRCode('qrcode', {
    //   text: window.location.href,
    //   width: 256,
    //   height: 256,
    //   colorDark: '#000000',
    //   colorLight: '#ffffff',

    // });

  </script>





</body>



</html>
